<?php
/**
 * ExtListViewBase class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftwareB.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */
 
 
abstract class ExtListViewBase extends ExtDataView
{
    private $_listcolumns_class_types = array('ExtListColumn');

    public function parseNode(ExtHTMLParserNode $node,
        ExtASTWalker $astwalker)
    {
        parent::parseNode($node, $astwalker);
        $this->parseColumns($node,$astwalker);
    }
    
    private function parseColumns($node,$astwalker)
    {
        $columns = $node->findPropertyByName('listcolumns');
        if(!is_null($columns))
        {
            $items=parent::parseNodeWidthTag($columns,
                    $astwalker,
                    true,
                    array('asobject'=>false),
                    $this,
                    $this->_listcolumns_class_types);
                $this->setArrayConfig('columns', $items);
            $columns->shiftUp();
        } 
    }
}
?>
